// setting.js
import http from "@/utils/http";

export const settingApi = {
  /**
   * 获取内置的设置json对象
   */
  getSettingJson() {
    return http.get("/setting/v1/settings/getSettingJson");
  },
  /**
   * 修改设置状态
   */
  updateSettingContent(data) {
    return http.post("/setting/v1/settings/updateSettingContent", data);
  },
  /**
   * 获取对应名称的设置状态
   */
  getSettingContentIsOpenByName(name) {
    return http.get("/setting/v1/settings/getSettingContentIsOpenByName", name);
  }
};